package com.cyy.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyy.content.model.dto.BindTeachplanMediaDto;
import com.cyy.content.model.dto.SaveTeachplanDto;
import com.cyy.content.model.dto.TeachPlanDto;
import com.cyy.content.model.po.Teachplan;
import com.cyy.content.model.po.TeachplanMedia;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author cyy
 * @since 2025-01-14
 */
public interface TeachplanService extends IService<Teachplan> {
    /**
     * 查询课程计划树型结构
     * @param courseId
     * @return
     */
    List<TeachPlanDto> findTeachPlanTree(Long courseId);

    /**
     * 保存课程计划
     * @param teachPlanDto
     * @return
     */
    void saveTeachPlan(SaveTeachplanDto teachPlanDto);

    /**
     * 删除课程计划
     * @param teachplanId
     */
    void deleteTeachPlan(Long teachplanId);

    void moveUpTeachPlan(Long teachplanId);

    void moveDownTeachPlan(Long teachplanId);

    void associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

}
